package org.benjamin.lending.service.impl;

import java.util.List;

import org.benjamin.lending.domain.entity.BannerInfo;
import org.benjamin.lending.repository.BannerInfoRepository;
import org.benjamin.lending.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SystemServiceImpl implements SystemService {
	
	@Autowired
	private BannerInfoRepository bannerInfoRepository;

	@Override
	public List<BannerInfo> findBannerList() {
		return this.bannerInfoRepository.findAll();
	}

	@Override
	public void bannerSave(BannerInfo bannerInfo) {
		this.bannerInfoRepository.save(bannerInfo);
	}

}
